<!--#include file="lib/utf-8.asp"-->
<!--#include file="lib/conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="lib/sheet.css" type="text/css">
<title>无标题文档</title>
</head>

<body>
<%
call CheckRights(3,3)
%>

<%
if request.Form("cdm")<>"" then cdm=request.Form("cdm")
If (CStr(Request.form("mm_add")) <> "") Then
	set cmd=Server.CreateObject("ADODB.Command")
	cmd.ActiveConnection = conn
	sql="insert into cd(cdm) values('"&cdm&"')"
	cmd.CommandText = sql
	cmd.Execute
	cmd.ActiveConnection.Close
	view_url="manage_cd.asp"
	response.Redirect(view_url)

end if
%>
<div class="navbar">
	<a href="manage_cd.asp">车队信息管理</a>&gt;&gt;<a href="add_cd.asp">添加车队</a>&gt;&gt;
</div>

<form name="form1" method="post" action="#">
<table cellspacing="1" cellpadding="2" border="0" bgcolor="black" width="100%">
	<tr bgcolor="silver">
		<th>车队名</th>
	</tr>
	<tr align="center" bgcolor="#efefef">
		<td><input name="cdm" type="text"></td>
	</tr>
	<tr bgcolor="silver">
		<td colspan="3" align="center"><input type="submit" name="Submit" value="提交">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="Reset" value="重置"><input type="hidden" name="mm_add" value="true"></td>
	</tr>
</table>
</form>
</body>
</html>

